package xyz.mrkwcode.aiimusicserver.services;

import xyz.mrkwcode.aiimusicserver.pojos.Comment;
import xyz.mrkwcode.aiimusicserver.pojos.Creator;
import xyz.mrkwcode.aiimusicserver.pojos.PageBean;
import xyz.mrkwcode.aiimusicserver.pojos.UserTask;

import java.util.List;

public interface OtherService {

    List<UserTask> findAllTaskList(Integer uid);

    UserTask findTaskByTaskId(Integer taskId);

    void banUser(UserTask userTask);

    void changePermission(UserTask userTask);

    void addComment(Comment comment);

    void removeComment(Integer cmid);

    void like(Comment comment);

    Comment findCommentByCmid(Integer cmid);

    PageBean<Creator> findCreatorByName(Integer pageNum, Integer pageSize, String creatorname);

    void deleteCreator(Integer cid);

    void editCreator(Creator creator);

    void editCreatorAvatar(Integer cid, String rcreatorAvatar);

    PageBean<Comment> getComments(Integer pageNum, Integer pageSize,Integer mid, Integer mlid);
}
